package model;

public class Many {
    private int idMany;
    private String name;
    private One one;

    public Many() {
        one = new One();
    }

    public int getIdMany() {
        return idMany;
    }

    public void setIdMany(int idMany) {
        this.idMany = idMany;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public One getOne() {
        return one;
    }

    public void setOne(One one) {
        this.one = one;
    }

    @Override
    public String toString() {
        return "Many{" +
                "idMany=" + idMany +
                ", name='" + name + '\'' +
                ", one=" + one +
                '}';
    }
}
